/*
   Copyright (c) 2019 Shanghai Xuanzi Technology Co. Ltd https://xuanzi.ltd
   XZMindMap is licensed under the Mulan PSL v1.
   You can use this software according to the terms and conditions of the Mulan PSL v1.
   You may obtain a copy of Mulan PSL v1 at:
      http://license.coscl.org.cn/MulanPSL
   THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
   IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
   PURPOSE.
   See the Mulan PSL v1 for more details.

*/

package xuanzi.commons.graphics;

public interface Canvas {
	
	void drawImage(Image path,float dx,float dy );
	
	void drawImage(Image path,float sx,float sy,float sWidth,float sHeight);
	
	void drawImage(Image path,float sx,float sy,float sWidth,float sHeight,float dx,float dy,float dWidth,float dHeight);
	
	void drawPath(Path path,Paint paint);
	
	void drawRect(BoxF box,Paint paint);
	
	void drawRect(BoxF box,float rad,Paint paint);
	
	void drawText(String text,float x,float y,Paint paint);
	
	void drawOval(BoxF box,Paint paint );
	
	void drawLine(float x,float y,float tx,float ty,Paint paint);
	
	float textWidth(String text,boolean mline,Paint paint);

	void translate(float x, float y);

	void restore();

	void save(); 

}
